<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

    <script src="js/原型模式.js"></script>
    <script type="text/javascript">
        var yourCar=Object.create(myCar);
        console.log(yourCar.name);

    </script>
</body>
</html>